/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testessembancodedados;

/**
 *
 * @author heliokann
 */
public class TesteTratamentoException {

    public static void main(String[] args) throws RuntimeException {
       try{
           teste();
       }catch(RuntimeException ex){
           System.out.println("dentro do catch RuntimeException");
       }catch (Throwable t){
           System.out.println("dentro do catch Throwable");
       }
    }

    private static void teste() {
        teste1();
    }
    private static void teste1() {
        System.out.println("entrou no teste1");
        throw new RuntimeException();
    }

}
